import { lazy } from "react"
// import A2 from "../views/a/A2"
/* A组件的二级路由表 */
const aRoutes = [
    {
        redirect:true,
        from:'/a',
        to:'/a/a1',
        exact:true
    },
    {
        path:'/a/a1',
        name:'a1',
        /* 基于下面这个注释，告诉webpack打包后文件的名字，名字相同的组件，会合并打包到一个JS中 */
        component: lazy(()=>import(/* webpackChunkName:'a' */'../views/a/A1')),
        meta:{},
    },
    {
        path:'/a/a2',
        name:'a2',
        component: lazy(()=>import(/* webpackChunkName:'a' */'../views/a/A2')),
        meta:{},
    },
    {
        path:'/a/a3', 
        name:'a3',
        component: lazy(()=>import(/* webpackChunkName:'a' */'../views/a/A3')),
        meta:{},
    }
]
export default aRoutes